package com.bjsxt.chapter5_adapter;

/**
 * @ClassName Adapter
 * @Description 对象适配器，采用组合的方式与被适配对象整合
 * @Author 黑马程序员
 * @Date 15:10 2024/6/21
 * @Version 1.0
 **/
public class Adapter2  implements Target{

    private Adaptee adaptee;

    public Adapter2(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    @Override
    public void handleReq() {
        adaptee.request();
    }
}
